using DesignPattern.Strategy;

namespace DesignPattern.Strategy
{
    public class Eagle : IBird
    {
        public string Fly()
        {
            return "FAST FLY";
        }

        public string Eat()
        {
            return "EAT GRASS";
        }
    }

    public class Parrot : IBird
    {
        public string Fly()
        {
            return "SLOW FLY";
        }

        public string Eat()
        {
            return "EAT GRASS";
        }
    }

    public class Crow : IBird
    {
        public string Fly()
        {
            return "FAST FLY";
        }

        public string Eat()
        {
            return "EAT FRUITS";
        }
    }

    public class Sparrow : IBird
    {
        public string Fly()
        {
            return "SLOW FLY";
        }

        public string Eat()
        {
            return "EAT FRUITS";
        }
    }

    public class Plane : IBird
    {
        public string Fly()
        {
            return "FLY FAST";
        }

        public string Eat()
        {
            throw new System.InvalidOperationException();
        }
    }
}